import request from "@/util/request";

const apiurl = "/member"

/*获取会员列表*/
export function getMembers(userSearchDTO) {
    return request({
        method: 'get',
        url: apiurl + '/list',
        params: userSearchDTO
    })
}

export function getMember(userId) {
    return request({
        method: 'get',
        url: apiurl,
        params: {userId}
    })
}

export function modifyMember(member) {
    return request({
        method: 'put',
        url: apiurl,
        data:member
    })
}
